<!DOCTYPE html>
<html>
<head>
	<title></title>
	<style>
		
	</style>
</head>
<body>

</body>
	<script>
		function User(){
			this.name = '艳艳';
			this.age = 18;
			this.getInfo = function(){
				document.write('OBJ3 <br>');
			}
		}

		var u1 = new User();
		var u2 = new User();

		User.prototype.getMsg = function(){
			document.write("HI<br>");
		}

		u1.getMsg();
		u2.getMsg();

		var a = 100;
		console.log(a.constructor);

		Number.prototype.add = function(num){
			return num+this;
		}
		console.log(a.add(100));
		console.log(99.9.add(100));
		//nsole.log(99.add(100));
		console.log((99).add(100));
		console.log(99..add(100));
		console.log(99.0.add(100));

		String.prototype.xxoo = '666';
		console.log('你好'.xxoo);

	
	</script>
</html>